package com.test.shiyan4;

import java.util.Scanner;

public class Czmymath {
    public static void main(String[] args) {
        double r,h;
        int n;
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入半径：");
        r = sc.nextDouble();
        System.out.println("请输入高：");
        h = sc.nextDouble();
        System.out.println("请输入n项");
        n = sc.nextInt();

        double mj = Mymath.ymj(r);
        System.out.println("圆的面积为:" + mj);
        double tj = Mymath.yzttj(r,h);
        System.out.println("圆锥的体积为：" + String.format("%.2f",tj));
        int num = Mymath.fbng(n);
        System.out.println("斐波那契数列值为："+num);
    }
}
